package acom.dhy.qigsaw2test.qigsaw;

import androidx.annotation.Keep;

import acom.dhy.qigsaw2test.BuildConfig;

@Keep
public final class QigsawConfig {
    public static final String DEFAULT_SPLIT_INFO_VERSION = "1.0.0";
    public static final boolean QIGSAW_MODE = true;
    public static final String QIGSAW_ID;
    public static final String VERSION_NAME;
    public static final String[] DYNAMIC_FEATURES;

    static {
        QIGSAW_ID = BuildConfig.VERSION_NAME;
        VERSION_NAME = BuildConfig.VERSION_NAME;
        DYNAMIC_FEATURES = parseDynamicFeatures();
    }

    private static String[] parseDynamicFeatures() {
        String[] splits = BuildConfig.dynamicFeatures.split(",");
        for (int i = 0; i < splits.length; i++) {
            splits[i] = splits[i].substring(1);
        }
        return splits;
    }
}
